package com.ruoyi.schoolSys.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.Date;

/**
 * <p>标题: </p>
 * <p>描述: </p>
 * <p>版权: Copyright (c) 2024</p>
 * <p>公司: 中科天巡</p>
 *
 * @version: 1.0
 * @author: WangChaoTao
 * @date 2024/2/20
 */
@Data
public class AskLeaveVo extends BaseEntity {

    /**  */
    @Excel(name = "")
    private Long id;

    /** 学生id */
    @Excel(name = "学生id")
    private Long studentId;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beginTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 请假类型（病假、事假） */
    @Excel(name = "请假类型", readConverterExp = "病=假、事假")
    private String leaveType;

    /** 请假缘由 */
    @Excel(name = "请假缘由")
    private String sause;

    /** 申请人id */
    @Excel(name = "申请人id")
    private Long proposerId;

    /** 审批状态 */
    @Excel(name = "审批状态")
    private Integer approveState;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applyTime;

    /** 审批时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date approveTime;

    /** 审核退回理由 */
    @Excel(name = "审核退回理由")
    private String backSause;

    /**
     * 学生姓名
     */
    private String stuName;
    /**
     * 申请人名字
     */
    private String proposerName;

}